public class OobIntroduction {

    public static void main(String[] args) {
        City sh = new City("shanghai", 118.1, 39.1);
        System.out.println(sh.getLatitude());
        System.out.println(sh.getLongtitude());
        System.out.println(sh.getName());
    }

}


class City{
    public String name;
    public double latitude;
    public double longtitude;

    public City(String n, double jd, double wd){
        name = n;
        latitude = jd;
        longtitude = wd;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public double getLongtitude() {
        return longtitude;
    }

    public void setLongtitude(double longtitude) {
        this.longtitude = longtitude;
    }
}